JavaScript

$swto Function

Arguments

elementelement|string

The DOM element that will be scrolled into view.

Description

Scrolls the window to the specified element.

Assume that the page contains a DIV that has an ID of 'detailView' that may not be visible because the browser window is not high enough. After refreshing the contents of this DIV you want to scroll it into view. This can be done as follows:

$swto('detailView')
Use {dialog.object}.getPointer() to get the DOM element for a control.

See Also